package me.ingxin.android.tools.app

import android.graphics.Color
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.WindowCompat
import me.ingxin.android.keyboard.safeKeyboard
import me.ingxin.android.tools.app.databinding.ActivitySafeKeyboardBinding

/**
 * Created by ingxin on 2023/2/7
 */
class SafeKeyboardActivity : AppCompatActivity() {

    private val binding by lazy { ActivitySafeKeyboardBinding.inflate(layoutInflater) }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(binding.root)

        supportActionBar?.hide()
        window.statusBarColor = Color.WHITE
        val controller = WindowCompat.getInsetsController(window, window.decorView)
        controller.isAppearanceLightStatusBars = true
        controller.isAppearanceLightNavigationBars = true

        binding.et1.safeKeyboard("自定义安全键盘1")
        binding.et2.safeKeyboard()
    }

}